package com.xquant.marketdata.marketdata.service.impl;

import com.xquant.common.redis.service.RedisService;
import com.xquant.marketdata.marketdata.domain.*;
import com.xquant.marketdata.marketdata.mapper.TidxMapper;
import com.xquant.marketdata.marketdata.service.TidxService;
import com.xquant.system.api.SysConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TidxServiceImpl implements TidxService {
    @Autowired
    private TidxMapper tidxMapper;
    @Autowired
    private SysConfigService sysConfigService;

    @Override
    public List<TidxDTO> selectTidxInfoList(Map<String, Object> params)
    {
        return tidxMapper.queryTidxInfoByPage(params);
    }

    @Override
    public List<TidxComponentDTO> selectTidxComponentList(Map<String, Object> params) {
        return tidxMapper.queryTidxComponentByPage(params);
    }

    @Override
    public List<TidxSeriesDTO> selectTidxSeriesList(Map<String, Object> params) {
        return tidxMapper.queryTidxSeriesByPage(params);
    }

    @Override
    public void updateIndexPrice(TidxSeriesDTO tidxSeriesDTO) {
        tidxMapper.updateIndexPrice(tidxSeriesDTO);
    }
}
